package com.sfc.spiderweb.entity.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/***
 *  @author Earl
 *  @description
 *  @date 2019/6/25
 */
@Data
public class TemplateMessageReqParam {

    @ApiModelProperty(value = "接收消息人的用户id集合",required = true)
    private List<String> userIdList;

    @ApiModelProperty(value = "发送的消息模板编号",required = true)
    @NotNull(message = "模板id不能为空")
    private Integer templateId;

    @ApiModelProperty(value = "验证信息",required = true)
    @NotBlank(message = "验证码不能为空")
    private String validToken;

    @ApiModelProperty(value = "消息参数")
    private List<String> messageParams;
}
